# 99乘法表
def cf99():
    i = 1
    while i <= 9:
        j = 1
        while j <= 9:
            k = i * j
            print('{}x{}={}'.format(i, j, k), end='  ')
            if i == j:
                break
            j += 1
        i += 1
        print('\n')


# 打印等腰三角形
def sanjiao():
    y = 10  # 空格个数
    z = 5  # 总数
    x = 1
    while z >= 0:
        z -= 1
        print('\n')
        for i in range(y):
            print(' ', end='')
        for i in range(x):
            print('*', end=' ')
        x += 2
        y -= 2


if __name__ == '__main__':
    sanjiao()
